#ifndef __SOCKETIO_H__
#define __SOCKETIO_H__

#include "../include/Message.hpp"

namespace cdm{


class SocketIO{

public:
    SocketIO(int fd);
    ~SocketIO(){}
    int sendN(const char *buff,int len);
    int recvN(char *buff,int len);
    int readPacket(Packet &);
    int readLine(char* buff,int max);
    int recvPeek(char*,int);

private:
    int _fd;

};

}

#endif
